package com.lgy.springclou.controller;

import com.lgy.springclou.service.PaymentFeignService;
import com.lgy.springclou.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {
    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("/order/list")
    public R list(){
        return paymentFeignService.list();
    }
    @GetMapping("/order/feign/timeout")
    public String payFeignTimeout(){
        return paymentFeignService.payFeignTimeout();
    }
}
